<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//多级目录控制器;
/*user*/
Route::get('user/index', 'user.user/index');
Route::get('user/list', 'user.user/list');
Route::post('user/uploadAvatar', 'user.user/uploadAvatar');
Route::get('user/create', 'user.user/create');
Route::post('user/save', 'user.user/save');
Route::get('user/read', 'user.user/read');
Route::get('user/edit', 'user.user/edit');
Route::post('user/update', 'user.user/update');
Route::delete('user/delete', 'user.user/delete');
Route::get('user/assignment', 'user.user/assignment');
Route::post('user/saveAssignment', 'user.user/saveAssignment');

/*permission*/
Route::get('permission/index', 'user.permission/index');
Route::get('permission/list', 'user.permission/list');
Route::get('permission/create', 'user.permission/create');
Route::post('permission/save', 'user.permission/save');
Route::get('permission/createRoute', 'user.permission/createRoute');
Route::post('permission/saveRoute', 'user.permission/saveRoute');
Route::get('permission/edit', 'user.permission/edit');
Route::post('permission/update', 'user.permission/update');
Route::get('permission/relate', 'user.permission/relate');
Route::get('permission/tree', 'user.permission/tree');
Route::post('permission/saveRelate', 'user.permission/saveRelate');
Route::delete('permission/delete', 'user.permission/delete');
Route::delete('permission/batchDel', 'user.permission/batchDel');

/*comment*/
Route::get('comment/index', 'message.comment/index');
Route::get('comment/list', 'message.comment/list');
Route::get('comment/read', 'message.comment/read');
Route::get('comment/edit', 'message.comment/edit');
Route::post('comment/update', 'message.comment/update');
Route::delete('comment/delete', 'message.comment/delete');
Route::delete('comment/batchDel', 'message.comment/batchDel');

/*message*/
Route::get('message/index', 'message.message/index');
Route::get('message/list', 'message.message/list');
Route::get('message/read', 'message.message/read');
Route::get('message/edit', 'message.message/edit');
Route::post('message/update', 'message.message/update');
Route::delete('message/delete', 'message.message/delete');
Route::delete('message/batchDel', 'message.message/batchDel');

/*log*/
Route::get('log/index', 'system.log/index');
Route::get('log/list', 'system.log/list');
Route::get('log/read', 'system.log/read');
Route::delete('log/delete', 'system.log/delete');
Route::delete('log/batchDel', 'system.log/batchDel');
Route::delete('log/clear', 'system.log/clear');

/*garbage*/
Route::get('garbage/index', 'data.garbage/index');
Route::delete('garbage/cache', 'data.garbage/cache');
Route::delete('garbage/clear', 'data.garbage/clear');
Route::delete('garbage/cacheConsole', 'data.garbage/cacheConsole');


/*backup*/
Route::get('backup/index', 'data.backup/index');

/*setting*/
Route::get('setting/index', 'system.setting/index');
Route::get('setting/edit', 'system.setting/edit');
Route::post('setting/uploadLogo', 'system.setting/uploadLogo');
Route::post('setting/update', 'system.setting/update');

/*menu*/
Route::get('menu/index', 'system.menu/index');
Route::get('menu/create', 'system.menu/create');
Route::post('menu/save', 'system.menu/save');
Route::get('menu/list', 'system.menu/list');
Route::get('menu/edit', 'system.menu/edit');
Route::post('menu/update', 'system.menu/update');
Route::delete('menu/delete', 'system.menu/delete');
Route::delete('menu/batchDel', 'system.menu/batchDel');
Route::post('menu/clear', 'system.menu/clear');

/*statement*/
Route::get('statement/index', 'system.statement/index');
Route::get('statement/visitedList', 'system.statement/visitedList');
Route::delete('statement/delete', 'system.statement/delete');
Route::delete('statement/batchDel', 'system.statement/batchDel');